#ifndef CClientCfgDlg_H
#define CClientCfgDlg_H
/********************************************************************************
** @ Date:2025/05/22
** @ Author: HanJiaXin
** @ Description:客户端配置界面
** @ Version:1.0.0
** @ ClassName:CClientCfgDlg
** @ Fun:
********************************************************************************/
#include <QDialog>
#include "ui_cclientcfgdlg.h"

class CClientData;

class CClientCfgDlg : public QDialog
{
	Q_OBJECT

public:
	CClientCfgDlg(QWidget *parent = nullptr);
	~CClientCfgDlg();

	void setData(QString &sName, QString &sIp, int &nPort, int nPointCount);
    void setClient(CClientData* pClient);

private:
    void initUI();
	void initConnect();//初始化槽函数连接

private slots:
	void slotPushButtonOK();//点击确定按钮
	void slotPushButtonClose();//点击关闭按钮

public:
	int m_nType;//界面类型 0:增 1:改

private:
	Ui::CClientCfgDlgClass ui;
    CClientData* m_pClient;
};
#endif
